package cn.kxm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.kxm.dao.PartMapper2;
import cn.kxm.pojo.Part;
import cn.kxm.pojo.PartType;
import cn.kxm.service.PartService2;
@Service()
public class PartServiceImpl2 implements PartService2{
    @Autowired
    private PartMapper2 partMapper;
	@Override
	public List<Part> getPartList(String partBrand, String partNo,
			String partName, Integer partTypeId, Integer pageNo,
			Integer pageSize) {
		return partMapper.getPartList(partBrand, partNo, partName, partTypeId, pageNo, pageSize);
	}

	@Override
	public int getPartCount(String partBrand, String partNo, String partName,
			Integer partTypeId) {
		return partMapper.getPartCount(partBrand, partNo, partName, partTypeId);
	}

	@Override
	public List<PartType> getPartTypeList() {
		return partMapper.getPartTypeList();
	}

}
